package job.job_0819;

public class MaxReload {//在同一个类中定义多个方法：要求不仅可以求2个整数的最大值，还可以求3个小数的最大值
        public static void main(String[] args) {
            System.out.println(max(19,9));
            System.out.println(max(1.2,2.3,4.9));
        }
        public static int max(int num1,int num2){
            return num1>num2?num1:num2;
        }
        public static double max(double num1,double num2){
        return num1>num2?num1:num2;
        }
        public static double max(double num1,double num2,double num3){
            return max(max(num1,num2),num3);
        }
}
